home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
178_01
/
tvx_term.ic
< prev
next >
Wrap
Text File
|
1986-01-16
|
24KB
|
448 lines
/* ------------------------>>> tvx_term.ic <<<----------------------------*/
/* ----------------- Various terminal definitions ---------------------- */
/* ********************************************************************** */
#ifdef IBMPC
EXTERN int addx = 31; /* amount to add to get x */
EXTERN int addy = 31; /* to get y */
EXTERN char cxychr = 0; /* true if convert xy bin to ascii */
EXTERN char cversn[12] = "IBM-PC"; /* a version to identify config */
EXTERN char cxy1st = 'l'; /* l if line first, c if column 1st */
EXTERN char cxybeg[8] = {18,0,0,0,0,0,0,0}; /* start xy control seq */
EXTERN char cxymid[8] = {0,0,0,0,0,0,0,0}; /* middle xy control seq */
EXTERN char cxyend[8] = {0,0,0,0,0,0,0,0}; /* end sequence */
EXTERN char cerrbg[8] = {16,0,0,0,0,0,0,0}; /* string to print when errors start */
EXTERN char cerred[8] = {14,0,0,0,0,0,0,0}; /* when errors done */
EXTERN char ctopb[8] = {3,0,0,0,0,0,0,0}; /* top blanks = reverse linefeed */
EXTERN char cinit[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
/* start up sequence */
EXTERN char cendit[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
/* to end session */
EXTERN char cbotb[8] = {10,0,0,0,0,0,0,0}; /* bottom blank line sequence */
EXTERN char celin[8] = {1,0,0,0,0,0,0,0}; /* erase to end of line */
EXTERN char cescr[8] = {2,0,0,0,0,0,0,0}; /* erase to end of screen */
EXTERN char ccsrcm[8] = {20,0,0,0,0,0,0,0}; /* set cursor to command mode */
EXTERN char ccsrin[8] = {19,0,0,0,0,0,0,0}; /* set cursor to insert mode */
EXTERN char ciline[8] = {3,0,0,0,0,0,0,0}; /* insert a line */
EXTERN char ckline[8] = {6,0,0,0,0,0,0,0}; /* kill a line */
EXTERN char cundlb[8] = {4,0,0,0,0,0,0,0}; /* turn on underline */
EXTERN char cundle[8] = {5,0,0,0,0,0,0,0}; /* turn off underline */
EXTERN char cboldb[8] = {11,0,0,0,0,0,0,0}; /* start bold */
EXTERN char cbolde[8] = {12,0,0,0,0,0,0,0}; /* end bold */
EXTERN int ddline = 16;
EXTERN int dscrl = 0;
EXTERN int dxcase = 0;
#ifdef USECTRLZ
EXTERN int usecz = 1;
#else
EXTERN int usecz = 0;
#endif
EXTERN int autoin = 0; /* TRUE if auto indent, FALSE otherwise */
EXTERN int logdef = 0; /* backup log file by default 0->no, 1-> yes */
EXTERN char delkey = 8;
EXTERN int tvlins = 25; /* number of lines on screen */
EXTERN int tvcols = 80; /* number of columns on screen */
EXTERN int tvhardlines = 25; /* real number of lines */
EXTERN int tvx = 0; /* current x cursor position */
EXTERN int tvy = 0; /* current y cursor position */
EXTERN int tvdlin = 0; /* the "active" display line */
EXTERN int dsplin = 0; /* the default display line */
EXTERN int tabspc = 8; /* spacing for tabs */
EXTERN int leftmg = 0; /* left margin of display */
EXTERN int wraplm = 0; /* auto wrap? */
EXTERN int isibmpc = 1; /* for possible use with a general version */
EXTERN char synofr[20] = /* from table */
{' ',13,'[',']',000,000,000,000,000,000,00,00,00,00,00,00,00,00,00,00};
EXTERN char synoto[20] = /* translate to table */
{'r','d','{','{',000,0,000,00,00,000,00,00,00,00,00,00,00,00,00,00};
EXTERN char funkey = 0; /* leading char for function key */
EXTERN char funchar[50] = /* code sent by function key */
{ /* make keypad function keys work like you would expect */
71, 72, 73, 75, 77, 79, 82, 83, 80, 81,
59, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
};
EXTERN char funcmd[50] = /* equivalent command */
{
'b', 21, 'h', 'l', 'r', 'e', 'i', 11, 4, 'p',
'&', 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
};
#endif
/* ********************************************************************** */
#ifdef TERMCAP
EXTERN int addx = 0; /* amount to add to get x */
EXTERN int addy = 0; /* to get y */
EXTERN char cxychr = 0; /* true if convert xy bin to ascii */
EXTERN char cversn[12] = ":"; /* a version to identify config */
EXTERN char cxy1st = 0; /* l if line first, c if column 1st */
EXTERN char cxybeg[8] = {0,0,0,0,0,0,0,0}; /* start xy control seq */
EXTERN char cxymid[8] = {0,0,0,0,0,0,0,0}; /* middle xy control seq */
EXTERN char cxyend[8] = {0,0,0,0,0,0,0,0}; /* end sequence */
EXTERN char cerrbg[8] = {0,0,0,0,0,0,0,0}; /* string to print when errors start */
EXTERN char cerred[8] = {0,0,0,0,0,0,0,0}; /* when errors done */
EXTERN char ctopb[8] = {0,0,0,0,0,0,0,0}; /* top blanks = reverse linefeed */
EXTERN char cinit[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
/* start up sequence */
EXTERN char cendit[20] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
/* to end session */
EXTERN char cbotb[8] = {10,0,0,0,0,0,0,0}; /* bottom blank line sequence */
EXTERN char celin[8] = {0,0,0,0,0,0,0,0}; /* erase to end of line */
EXTERN char cescr[8] = {0,0,0,0,0,0,0,0}; /* erase to end of screen */
EXTERN char ccsrcm[8] = {0,0,0,0,0,0,0,0}; /* set cursor to command mode */
EXTERN char ccsrin[8] = {0,0,0,0,0,0,0,0}; /* set cursor to insert mode */
EXTERN char ciline[8] = {0,0,0,0,0,0,0,0}; /* insert a line */
EXTERN char ckline[8] = {0,0,0,0,0,0,0,0}; /* kill a line */
EXTERN char cundlb[8] = {0,0,0,0,0,0,0,0}; /* turn on underline */
EXTERN char cundle[8] = {0,0,0,0,0,0,0,0}; /* turn off underline */
EXTERN char cboldb[8] = {0,0,0,0,0,0,0,0}; /* start bold */
EXTERN char cbolde[8] = {0,0,0,0,0,0,0,0}; /* end bold */
EXTERN int ddline = 12; /* unix really needs scroll window */
EXTERN int dscrl = 6;
EXTERN int dxcase = 0;
#ifdef USECTRLZ
EXTERN int usecz = 1;
#else
EXTERN int usecz = 0;
#endif
EXTERN int autoin = 0; /* TRUE if auto indent, FALSE otherwise */
EXTERN int logdef = 0; /* backup log file by default 0->no, 1-> yes */
EXTERN char delkey = 8;
EXTERN int tvlins = 0; /* number of lines on screen */
EXTERN int tvcols = 0; /* number of columns on screen */
EXTERN int tvhardlines = 0; /* real number of lines */
EXTERN int tvx = 0; /* current x cursor position */
EXTERN int tvy = 0; /* current y cursor position */
EXTERN int tvdlin = 0; /* the "active" display line */
EXTERN int dsplin = 0; /* the default display line */
EXTERN int tabspc = 8; /* spacing for tabs */
EXTERN int leftmg = 0; /* left margin of display */
EXTERN int wraplm = 0; /* auto wrap? */
EXTERN int isibmpc = 0; /* for possible use with a general version */
EXTERN char synofr[20] = /* from table */
{' ',13,'[',']',000,000,000,000,000,000,00,00,00,00,00,00,00,00,00,00};
EXTERN char synoto[20] = /* translate to table */
{'r','d','{','{',000,0,000,00,00,000,00,00,00,00,00,00,00,00,00,00};
EXTERN char funkey = 0; /* leading char for function key */
EXTERN char funchar[50] = /* code sent by function key */
{
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000
};
EXTERN char funcmd[50] = /* equivalent command */
{
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000,
000, 000, 000, 000, 000, 000, 000, 000, 000, 000
};
#endif
/* ********************************************************************** */
#ifdef VT100
EXTERN int addx